package com.tencent.miniproject.been;

import java.util.List;

/**
 * 某人的动态
 * 个人信息 + 所有动态 + [总的花费]
 */
public class PostSummary {


    /**
     * result : success
     * message : {"userId":1,"username":"1","headUrl":"1","cost":23,"posts":[{"id":5,"userId":1,"content":"","imgUrl":"a url","position":"广东省深圳市南山区深南大道9998","longitude":113.933723,"latitude":22.540669,"store":"测","imgLabel":"","releaseTime":"May 29, 2018 9:18:40 PM","cost":8,"votes":0,"comments":0,"district":"广东省;深圳市;南山区"},{"id":4,"userId":1,"content":"","imgUrl":"a url","position":"广东省深圳市南山区深南大道9998","longitude":113.933723,"latitude":22.540669,"store":"图","imgLabel":"","releaseTime":"May 29, 2018 9:14:52 PM","cost":7,"votes":0,"comments":0,"district":"广东省;深圳市;南山区"},{"id":3,"userId":1,"content":"","imgUrl":"a url","position":"广东省深圳市南山区深南大道9998","longitude":113.933723,"latitude":22.540669,"store":"图","imgLabel":"","releaseTime":"May 29, 2018 9:14:17 PM","cost":7,"votes":0,"comments":0,"district":"广东省;深圳市;南山区"},{"id":1,"userId":1,"content":"1","imgUrl":"1","position":"1","longitude":1,"latitude":1,"store":"1","imgLabel":"1","releaseTime":"May 26, 2018 12:00:00 AM","cost":1,"votes":1,"comments":0,"district":"1"}]}
     */

    private String result;
    /**
     * userId : 1
     * username : 1
     * headUrl : 1
     * cost : 23
     * posts : [{"id":5,"userId":1,"content":"","imgUrl":"a url","position":"广东省深圳市南山区深南大道9998","longitude":113.933723,"latitude":22.540669,"store":"测","imgLabel":"","releaseTime":"May 29, 2018 9:18:40 PM","cost":8,"votes":0,"comments":0,"district":"广东省;深圳市;南山区"},{"id":4,"userId":1,"content":"","imgUrl":"a url","position":"广东省深圳市南山区深南大道9998","longitude":113.933723,"latitude":22.540669,"store":"图","imgLabel":"","releaseTime":"May 29, 2018 9:14:52 PM","cost":7,"votes":0,"comments":0,"district":"广东省;深圳市;南山区"},{"id":3,"userId":1,"content":"","imgUrl":"a url","position":"广东省深圳市南山区深南大道9998","longitude":113.933723,"latitude":22.540669,"store":"图","imgLabel":"","releaseTime":"May 29, 2018 9:14:17 PM","cost":7,"votes":0,"comments":0,"district":"广东省;深圳市;南山区"},{"id":1,"userId":1,"content":"1","imgUrl":"1","position":"1","longitude":1,"latitude":1,"store":"1","imgLabel":"1","releaseTime":"May 26, 2018 12:00:00 AM","cost":1,"votes":1,"comments":0,"district":"1"}]
     */

    private MessageBean message;

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public MessageBean getMessage() {
        return message;
    }

    public void setMessage(MessageBean message) {
        this.message = message;
    }

    public static class MessageBean {
        private int userId;
        private String username;
        private String headUrl;
        private int cost;
        /**
         * id : 5
         * userId : 1
         * content :
         * imgUrl : a url
         * position : 广东省深圳市南山区深南大道9998
         * longitude : 113.933723
         * latitude : 22.540669
         * store : 测
         * imgLabel :
         * releaseTime : May 29, 2018 9:18:40 PM
         * cost : 8
         * votes : 0
         * comments : 0
         * district : 广东省;深圳市;南山区
         */

        private List<Post> posts;

        public int getUserId() {
            return userId;
        }

        public void setUserId(int userId) {
            this.userId = userId;
        }

        public String getUsername() {
            return username;
        }

        public void setUsername(String username) {
            this.username = username;
        }

        public String getHeadUrl() {
            return headUrl;
        }

        public void setHeadUrl(String headUrl) {
            this.headUrl = headUrl;
        }

        public int getCost() {
            return cost;
        }

        public void setCost(int cost) {
            this.cost = cost;
        }

        public List<Post> getPosts() {
            return posts;
        }

        public void setPosts(List<Post> posts) {
            this.posts = posts;
        }
    }
}
